package com.pangyangyang.elasticsearch.plugin.util;/*
 * Created by gangzz.
 *  2015/7/3
 */

import java.util.concurrent.TimeUnit;

/**
 *
 */
public class Threads {

    public static void sleep(long durationMillis) {
        try {
            Thread.sleep(durationMillis);
        } catch (InterruptedException var3) {
            Thread.currentThread().interrupt();
        }

    }

    public static void sleep(long duration, TimeUnit unit) {
        try {
            Thread.sleep(unit.toMillis(duration));
        } catch (InterruptedException var4) {
            Thread.currentThread().interrupt();
        }

    }
}
